<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>管理系统</title>
    {:widget_st('tailwind','css')}
    <style>
        .dlbox .weixin, .dlbox .weibo {
        display: inline-block;
        width: 32px;
        height: 32px;
        background-size: cover;
        }


        .bg-indigo-100 {
        background-color: #fff;
        }.border-gray-200 {
        border-color: #edf2f7;
        }.bg-gray-100 {
        background-color: #f7fafc;
        }.bg-indigo-500 {
        background-color: #667eea;
        }
    </style>
</head>
{:do_action('admin_head')}

<body class="min-h-screen bg-gray-100 text-gray-900 flex justify-center dlbox">
    <div class="max-w-screen-xl m-0 sm:m-20 bg-white shadow sm:rounded-lg flex justify-center flex-1">
        <div class="lg:w-1/2 xl:w-5/12 p-6 sm:p-12">
            <div class="mt-12 flex flex-col items-center">
                <h1 class="text-2xl xl:text-3xl font-extrabold">输入二级操作密码</h1>
                <div class="w-full flex-1 mt-8">
                    <div class="mx-auto max-w-xs">
                        <form class="info_tj" onclick="return false;">
                            <input class="w-full px-8 py-4 rounded-lg font-medium bg-gray-100 border border-gray-200 placeholder-gray-500 text-sm focus:outline-none focus:border-gray-400 focus:bg-white mt-5" type="password" name="two_pwd" placeholder="密码">
                            <button class="mt-5 tracking-wide font-semibold bg-indigo-500 text-gray-100 w-full py-4 rounded-lg hover:bg-indigo-700 ease-in-out flex items-center justify-center focus:shadow-outline focus:outline-none tijiao">
                                <span class="ml-3 ">确 认</span>
                            </button>
                        </form>
                       
                        
                    </div>
                </div>
            </div>
        </div>
        
    </div>
</body>
</html>
{:do_action('admin_js')}
{:widget_st('jq','js')}

  {:widget_st('layer','js')}
<script>
   $('.tijiao').on('click',function(){
      var data = $(".info_tj input,.info_tj textarea,.info_tj select").serialize();   
     //异步获取信息
      $.ajax({
        data:data,
        dataType:'json',
        type:"POST",
        success:function(res){
          if(res.result==1){
            layer.msg('确认成功', {
              offset: '15px'
              ,icon: 1
              ,time: 1000
            }, function(){
              //返回上一级
                window.location.href=res.url;
            });
          }else{
            layer.msg(res.msg,{icon:2})

          }
          
        }
      })
    })
</script>
